#include "AnimationPikmenUp.h"
#include "CSurface.h"

#include <SDL/SDL.h>
#include <iostream>

using namespace std;

SDL_Surface *AnimationPikmenUp::sprites = NULL;

int AnimationPikmenUp::initialized = 0;

AnimationPikmenUp::AnimationPikmenUp(){
    this->width = 32;
    this->height = 60;

    this->MaxFrames = 3;
    this->FrameRate = 230;
    this->k=0;
    this->p=2;

    if(!this->initialized){
        /// Cargamos los Sprites
        if((this->sprites
                =CSurface::OnLoad("images/pikmen_green_up.bmp"))==NULL){
            cout << "Algo salio mal cargando sprites" << endl;
            exit(EXIT_FAILURE);
        }
        CSurface::Transparent(this->sprites, 0, 183, 239);

        this->initialized = 1;
    }
}

SDL_Surface* AnimationPikmenUp::getFrame(){
    return this->sprites;
}

